:root {
  --bg: #161616;
  --bg-light: #262926;
  --text: #eef5e5;
  --text-strong: #fff;
  --muted: #a7b79d;
  --accent: #99b975;
  --accent-strong: #5a6d45;
  --main-font: "Times New Roman", Times, serif;
  --code-font: "Jetbrains Mono", monospace;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  box-sizing: border-box;
  width: min(55rem, 100%);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  background: var(--bg);
  color: var(--text);
}

header .above-title a {
  position: absolute;
  margin: 0;
  font: .9rem var(--code-font);
  transform: translateY(-33%);
}

header h1 {
  margin-bottom: 0;
  font: 5rem var(--main-font);
  letter-spacing: -.05em;

  img {
    height: 5rem;
    vertical-align: text-top;
  }
}

header h2 {
  margin-top: 0;
  font: 1.5rem var(--main-font);
  letter-spacing: -.05em;
}

section {
  font: 1.5rem var(--main-font);
}

a:not(.zola-anchor) {
  color: var(--accent);
  font: 1.3rem var(--code-font);
  text-decoration: underline;
  text-decoration-thickness: .05em;
  text-underline-offset: .1em;

  &:hover {
    color: var(--muted);
  }
}

.zola-anchor {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

li p {
  margin: 0;
}

section .katex {
  color: var(--text-strong);
  font-size: 1em;
}

code {
  padding: .125em .2em;
  border: 1.5px solid var(--accent-strong);
  border-radius: 6px;
  background: var(--bg-light);
  font: .9em var(--code-font);
}

pre {
  padding: 1rem;
  border: 2px solid var(--accent-strong);
  border-radius: 12px;
  font: .95em var(--code-font);

  code {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--text);
  }
}

blockquote {
  margin: 1.5rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent-strong);
  border-radius: 12px;
  background: var(--bg-light);

  p {
    margin: .25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}